/**
 * Confirmation ballon begin
 */

$(document).ready(function() {

    $('.ask').click(function(e) {
        e.preventDefault();
        thisHref	= $(this).attr('href');

        if($(this).next('div.question').length <= 0)
            $(this).after('<div class="question">Esta seguro?<br/> <span class="yesx">Si</span><span class="cancelx">Cancelar</span></div>');

        $('.question').animate({
            opacity: 1
        }, 300);

        $('.yesx').live('click', function(){
            window.location = thisHref;
        });

        $('.cancelx').live('click', function(){
            $(this).parents('div.question').fadeOut(300, function() {
                $(this).remove();
            });
        });

    });

});

/**
 * Confirmation ballon end
 */



